package com.chouren.goandroid.animate.effect;

import android.view.View;

import com.nineoldandroids.animation.ObjectAnimator;

public class FallEffect extends BaseEffect{

	@Override
	protected void setAnimators(View view) {
		getAnimatorSet().playTogether(
                ObjectAnimator.ofFloat(view, "scaleX", 2, 1.5f, 1).setDuration(duration),
                ObjectAnimator.ofFloat(view,"scaleY",2,1.5f,1).setDuration(duration),
                ObjectAnimator.ofFloat(view, "alpha", 0, 1).setDuration(duration*3 / 2)
        );
	}
}
